﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1.Admin
{
    public partial class Admin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["quyen"] == null)
                {
                    Response.Redirect("../ad.aspx");
                }
                
                else if (Session["quyen"].ToString() != "Admin")
                {
                   Response.Redirect("../ad.aspx");
                }
            }
          
        }
    }
}
